package com.freshminds.saudiproject;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;

public class SplashActivity extends Activity 
{

	
	TimerTask task;
	Timer timer;
	
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        timer=new Timer();
        task=new TimerTask() 
        {
			
			@Override
			public void run() 
			{
				finish();
				startActivity(new Intent(SplashActivity.this, DashBoard.class));
				
			}
		};
        
        timer.schedule(task, 3000);       
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
